package org.idea.qiyu.framework.apm.agent.core.jdbc;

/**
 * @Author linhao
 * @Date created in 2:35 下午 2021/7/19
 */
public class JdbcTraceSession {

    static ThreadLocal<JdbcStatisticsObject> session = new ThreadLocal<>();

    public static void set(JdbcStatisticsObject jdbcStatisticsObject) {
        session.set(jdbcStatisticsObject);
    }

    public static JdbcStatisticsObject get(){
        return session.get();
    }

    public static void close(){
        session.remove();
    }
}
